package com.acme.chat.settings;

import java.util.ListResourceBundle;

public class MyBundle_en extends ListResourceBundle {

    private Object[][] content = new Object[][]{

        //Client
        {"ErrConnectToServer", "Error connected to server!\n"},
        {"ExcCreateIOStream", "Exception creating new input/output streams.\n"},
        {"ExcLogin", "Exception doing login.\n"},
        {"ExcWritingToServer", "Exception writing to server.\n"},
        {"ServerCloseConnection", "Server has close the connection.\n"},
        {"ConnectionAccepted", "Connection accepted "},
        {"ErrToLongMessage", "Your message is to long. Max lenght - "},

        //GUIClient
        {"WINDOW_NAME", "Chat client"},
        {"LABEL_SERVER", "Server"},
        {"DEFAULT_HOST", "localhost"},
        {"LABEL_PORT", "Port"},
        {"LABEL_HISTORY","Show history"},
        {"LABEL_CLEAR_LOG","Clear log"},
        {"LABEL_LOGIN", "Login"},
        {"LABEL_LOGOUT", "Logout"},
        {"LABEL_LIST", "Users list"},
        {"LABEL_ROOM", "Room"},
        {"LABEL_PRIVATE_NAME", "Private name"},
        {"ERROR_EMPTY_NAME", "Error!\nYour name must contain at least one character.\n"},
        {"ERROR_EMPTY_HOSTNAME", "Error!\nYou need to enter the address or server host name.\n"},
        {"ERROR_EMPTY_PORT", "Error!\nYou need to enter the port number.\n"},
        {"ERROR_PORT_FORMAT", "Error!\nYou need to enter valid port number.\n"},
        {"ERROR_CANNOT_CONNECT", "Can't connect to the server!\n"},
        {"ENTER_YOUR_NAME", "Enter your name: "},
        {"ENTER_YOUR_MESSAGE", "Enter your message: "},

        //ServerImpl
        {"User", "User"},
        {"ConnectedToRoom", "connected to the room"},
        {"DisconnectFromRoom", "disconnected from room"},

    {"ErrUserExist" , "Another client with this name already on the server!\n"},
    {"ErrToLongName" , "Your name is too long!\nMaximum allows is "},
    {"Disconnected" , "You are disconnected from the server!\n"},
    {"RoomsUsersList" , "List of the clients in the room "},
    {"ServersUsersList" , "List of the clients on the server:\n"},

    //TCPServer
    {"ErrServerSocketCreation", "Can't create ServerSocket on the port: "},
    {"ErrCantAcceptConnection", "Can't accept connection on the socket:" },
    {"ErrClosingServer", "Error closing the server: "},
    {"InvalidPortNumber",  "Invalid port number."},
    {"UsageIs", "Usage is: > java Server port:"},

    };

    @Override
    protected Object[][] getContents() {
        return content;
    }
}
